package com.aiiju.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class Goods implements Serializable {
    private Long id;

    /**
     * 商品名称
     */
    private String name;

    /**
     * 商品条码
     */
    private String code;

    /**
     * 商品类型id
     */
    private Long goodsTypeId;

    /**
     * 商品价格
     */
    private BigDecimal price;

    private String unit;

    /**
     * 商品图片url
     */
    private String imageUrl;

    private String storeId;

    private Date createDate;

    private Date modifyDate;

    private String relationGoodsId;

    private Integer inventory;

    private Date modifyInventoryDate;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    public Long getGoodsTypeId() {
        return goodsTypeId;
    }

    public void setGoodsTypeId(Long goodsTypeId) {
        this.goodsTypeId = goodsTypeId;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit == null ? null : unit.trim();
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl == null ? null : imageUrl.trim();
    }

    public String getStoreId() {
        return storeId;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId == null ? null : storeId.trim();
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    public String getRelationGoodsId() {
        return relationGoodsId;
    }

    public void setRelationGoodsId(String relationGoodsId) {
        this.relationGoodsId = relationGoodsId == null ? null : relationGoodsId.trim();
    }

    public Integer getInventory() {
        return inventory;
    }

    public void setInventory(Integer inventory) {
        this.inventory = inventory;
    }

    public Date getModifyInventoryDate() {
        return modifyInventoryDate;
    }

    public void setModifyInventoryDate(Date modifyInventoryDate) {
        this.modifyInventoryDate = modifyInventoryDate;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", code=").append(code);
        sb.append(", goodsTypeId=").append(goodsTypeId);
        sb.append(", price=").append(price);
        sb.append(", unit=").append(unit);
        sb.append(", imageUrl=").append(imageUrl);
        sb.append(", storeId=").append(storeId);
        sb.append(", createDate=").append(createDate);
        sb.append(", modifyDate=").append(modifyDate);
        sb.append(", relationGoodsId=").append(relationGoodsId);
        sb.append(", inventory=").append(inventory);
        sb.append(", modifyInventoryDate=").append(modifyInventoryDate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}